PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-03-18 15:12:48.436972+00:00 (UTC)
In US/Central Time, this is 2024-03-18 10:12:48.436972-05:00
High Yield Index OAS 10Y-2Y Spread VIX CP - Treasury Spread, 3m NASDAQ Ret (transformed) 10-Year Treasury (transformed)
DATE
1997-01-02 -0.897483 -0.475791 0.085640 -0.007693 0.545679 0.254796
1997-01-03 -0.885775 -0.475791 -0.156142 0.007825 0.745238 0.205642
1997-01-06 -0.881872 -0.475791 -0.064722 -0.015452 0.778113 0.269580
1997-01-07 -0.881872 -0.454963 -0.129679 -0.046488 0.837733 0.383184
1997-01-08 -0.893580 -0.454963 -0.022621 -0.085282 0.785773 0.496397
... ... ... ... ... ... ...
2024-03-11 -0.819426 -1.496360 -0.626475 1.869964 0.924504 -0.175697
2024-03-12 -0.842843 -1.506774 -0.792474 1.815651 1.034530 0.037171
2024-03-13 -0.862357 -1.506774 -0.803300 1.761339 1.065001 0.154110
2024-03-14 -0.862357 -1.475532 -0.725112 1.761339 0.887946 0.499773
2024-03-15 -0.858455 -1.496360 -0.723909 1.761339 0.904526 0.499773

7188 rows × 6 columns

../_images/67d3e2c2d8fe3ae4b8a8343fafa227ad35040836cc432cf89d11e67acfa50de5.png
pc1
DATE
1997-01-02   -0.578782
1997-01-03   -0.684972
1997-01-06   -0.667861
1997-01-07   -0.704246
1997-01-08   -0.673897
                ...   
2024-03-11   -1.486100
2024-03-12   -1.589887
2024-03-13   -1.611900
2024-03-14   -1.594679
2024-03-15   -1.602202
Name: PC1, Length: 7188, dtype: float64
# NEW PLOT
dfn['NASDAQ Ret (transformed)'].plot()
<Axes: xlabel='DATE'>
../_images/b39e583c564066ed535f83565951db7a78b699a41d5ab9c845f2cc895a425713.png
fig = px.line(pc1)
fig.show()
../_images/7e85880111060b3212dccb766a9d003040fb6412c3ac921d73cfcd8c5ec10bb5.png